<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	xmlns:c="http://java.sun.com/jstl/core"
	template="/layout/dialogLayout.xhtml">

	<ui:param name="param_pageTitle"
		value="#{messages.luyuan_crm_menu_order}" />
<ui:param name="param_panelWidth" value="600px" />
<ui:param name="param_autoClose" value="false" />
	<ui:define name="content">
        <!-- 弧形外观 -->
        <ui:decorate template="/components/titlePanel.xhtml">
          <ui:param name="param_headerTitle"  value="订单记录" />
            <h:form>
                  <rg:table id="orderTable"
                        value="#{orderMemberAction.orderTableModel}" var="item">
						<rg:column property="id" title="订单号" />
						<rg:column property="customer.name" title="会员" />
						<rg:column property="saleman.userName" title="制单人" />
						<rg:column property="amount" title="成交额" />
						<rg:column property="orderType" title="订单类型"
							converter="#{orderTypeConverter}" />
						<rg:column property="orderStatus" title="订单状态"
							converter="#{orderStatusConverter}" />
						<rg:column property="createTime" title="制单时间" 
							datePattern="yyyy-MM-dd HH:mm" converter="#{dateConverter}" />
                        <rg:column cellType="oper"
                                title="#{messages.crud_tbl_operate_label}" width="220">
                                <ul class="links">
                                <li>
                                        <a href="#{ctx}/luyuan/sale/orderViewForMember.jsf?id=#{item.id}" target="orderView">详细订单</a>
                                </li>
                                </ul>
                 </rg:column>
                    </rg:table>
            </h:form>
        </ui:decorate>
    </ui:define>
</ui:composition>